import { Tabs } from "expo-router";
import SimpleLineIcons from "@expo/vector-icons/SimpleLineIcons";
function TabBarIcon(props: any) {
  return <SimpleLineIcons size={28} {...props} />;
}
export default function TabLayout() {
  return (
    <Tabs
      screenOptions={{
        tabBarActiveTintColor: "#e29447",
      }}
    >
      <Tabs.Screen
        name="index"
        options={{
          title: "首页",
          tabBarIcon: ({ color }) => <TabBarIcon name="home" color={color} />,
        }}
      />
      <Tabs.Screen
        name="user"
        options={{
          title: "用户",
          tabBarIcon: ({ color }) => <TabBarIcon name="folder" color={color} />,
        }}
      />
    </Tabs>
  );
}
